package br.xraylol.test.client;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import br.xraylol.client.GameClient;
import br.xraylol.custom.list.GameList;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:spring-module.xml")
public class GameTestClient {
	
	@Autowired
	GameClient client;
	
	@Test
	public void findRecentGames() {
		GameList games = client.findRecentGamesBySummoner(416061L);
		
		assertNotNull(games);
		assertEquals(games.getGames().size() > 0, true);
	}
}
